package main
import "fmt"

func main(){
	// var userinfo=make(map[string]string)
	// userinfo["姓名"]="张三"
	// userinfo["age"]="18"
	// fmt.Println(userinfo)

	// var userinfo=map[string]string{
	// 	"name":"zhangsan",
	// 	"age":"18",
	// }
	// fmt.Println(userinfo)

	userinfo:=map[string]string{
		"school":"sanzhong",
		"class":"04042201",
	}

	for k,v:=range userinfo{
		fmt.Printf("key=%v,value=%v\n",k,v)
	}


	v,ok:=userinfo["school"]
	if ok {
		fmt.Printf("%s\n",v)
	}
	v,ok=userinfo["ook"]
		fmt.Printf("%v %v\n",v,ok)
	// fmt.Println(userinfo)
	// fmt.Println(userinfo["school"])


	delete(userinfo,"school")
	fmt.Println(userinfo)
}